esphome/esphome/components/api
Paul Monigatti 471b82f727
EntityBase Refactor (#2418)
* Renamed Nameable to EntityBase (cpp)

* Renamed NAMEABLE_SCHEMA to ENTITY_BASE_SCHEMA (Python)

* Renamed cg.Nameable to cg.EntityBase (Python)

* Remove redundant use of CONF_NAME from esp32_touch

* Remove redundant use of CONF_NAME from mcp3008

* Updated test

* Moved EntityBase from Component.h and Component.cpp

* Added icon property to EntityBase

* Added CONF_ICON to ENTITY_BASE_SCHEMA and added setup_entity function to cpp_helpers

* Added MQTT component getters for icon and disabled_by_default

* Lint

* Removed icon field from MQTT components

* Code generation now uses setup_entity to setENTITY_BASE_SCHEMA fields

* Removed unused import

* Added cstdint include

* Optimisation: don't set icon if it is empty

* Remove icon from NumberTraits and SelectTraits

* Removed unused import

* Integration and Total Daily Energy sensors now inherit icons from their parents during code generation

* Minor comment correction

* Removed redundant icon-handling code from sensor, switch, and text_sensor

* Update esphome/components/tsl2591/tsl2591.h

Co-authored-by: Oxan van Leeuwen <oxan@oxanvanleeuwen.nl>

* Added icon property to binary sensor, climate, cover, and fan component tests

* Added icons for Binary Sensor, Climate, Cover, Fan, and Light  to API

* Consolidated EntityBase fields in MQTT components

Co-authored-by: Oxan van Leeuwen <oxan@oxanvanleeuwen.nl>
2021-10-10 10:37:05 +02:00
..
__init__.py API encryption switch to libsodium backend (#2456) 2021-10-06 22:36:12 +02:00
api.proto EntityBase Refactor (#2418) 2021-10-10 10:37:05 +02:00
api_connection.cpp EntityBase Refactor (#2418) 2021-10-10 10:37:05 +02:00
api_connection.h Fix API socket issues (#2288) 2021-09-13 18:52:53 +02:00
api_frame_helper.cpp Re-enable TCP nodelay for ESP32 (#2390) 2021-09-27 11:40:28 +02:00
api_frame_helper.h Fix clang-tidy header filter (#2385) 2021-09-24 18:02:28 +02:00
api_noise_context.h Fix clang-tidy header filter (#2385) 2021-09-24 18:02:28 +02:00
api_options.proto Create Protobuf Plugin for automatically generating native API stubs (#633) 2019-06-18 19:31:22 +02:00
api_pb2.cpp EntityBase Refactor (#2418) 2021-10-10 10:37:05 +02:00
api_pb2.h EntityBase Refactor (#2418) 2021-10-10 10:37:05 +02:00
api_pb2_service.cpp Only compile protobuf dumping when very verbose logging is enabled (#2139) 2021-08-09 22:32:06 +02:00
api_pb2_service.h Add select entities and implement template select (#2067) 2021-08-02 20:00:51 +12:00
api_server.cpp Add log line to show if API encryption is being used (#2450) 2021-10-06 11:26:18 +13:00
api_server.h Fix clang-tidy header filter (#2385) 2021-09-24 18:02:28 +02:00
client.py Fix aioesphomeapi API logger with explicit api.port in the YAML. (#2310) 2021-09-15 08:48:27 +02:00
custom_api_device.h Activate owning-memory clang-tidy check (#1891) 2021-09-13 11:31:02 +02:00
homeassistant_service.h lint 2020-05-24 23:27:28 -03:00
list_entities.cpp Add select entities and implement template select (#2067) 2021-08-02 20:00:51 +12:00
list_entities.h Add select entities and implement template select (#2067) 2021-08-02 20:00:51 +12:00
proto.cpp Only compile protobuf dumping when very verbose logging is enabled (#2139) 2021-08-09 22:32:06 +02:00
proto.h ESP-IDF support and generic target platforms (#2303) 2021-09-20 11:47:51 +02:00
subscribe_state.cpp Add select entities and implement template select (#2067) 2021-08-02 20:00:51 +12:00
subscribe_state.h Add select entities and implement template select (#2067) 2021-08-02 20:00:51 +12:00
user_services.cpp Esp32 c3 support (#2035) 2021-07-20 11:12:22 +02:00
user_services.h Activate some clang-tidy checks (#1884) 2021-06-10 13:04:40 +02:00
util.cpp Add select entities and implement template select (#2067) 2021-08-02 20:00:51 +12:00
util.h Add select entities and implement template select (#2067) 2021-08-02 20:00:51 +12:00