From df3f13ded884682dfbcbba542d79aedb1e100b0a Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Sat, 4 Mar 2023 20:19:51 +1300 Subject: [PATCH] Add int16 to codegen (#4507) --- esphome/codegen.py | 1 + esphome/cpp_types.py | 1 + 2 files changed, 2 insertions(+) diff --git a/esphome/codegen.py b/esphome/codegen.py index ef5b490004..c926c94070 100644 --- a/esphome/codegen.py +++ b/esphome/codegen.py @@ -63,6 +63,7 @@ from esphome.cpp_types import ( # noqa uint16, uint32, uint64, + int16, int32, int64, size_t, diff --git a/esphome/cpp_types.py b/esphome/cpp_types.py index aafe765111..7d0e386b66 100644 --- a/esphome/cpp_types.py +++ b/esphome/cpp_types.py @@ -14,6 +14,7 @@ uint8 = global_ns.namespace("uint8_t") uint16 = global_ns.namespace("uint16_t") uint32 = global_ns.namespace("uint32_t") uint64 = global_ns.namespace("uint64_t") +int16 = global_ns.namespace("int16_t") int32 = global_ns.namespace("int32_t") int64 = global_ns.namespace("int64_t") size_t = global_ns.namespace("size_t")