1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-25 21:23:53 +01:00

Add area (zone) to esphome core config to be suggested through API and MQTT. (#5602)

Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
Cossid
2023-10-26 17:38:52 -05:00
committed by GitHub
parent cfbf3681f3
commit bcfbcd9578
10 changed files with 31 additions and 3 deletions

View File

@@ -464,6 +464,8 @@ class EsphomeCore:
self.name: Optional[str] = None
# The friendly name of the node
self.friendly_name: Optional[str] = None
# The area / zone of the node
self.area: Optional[str] = None
# Additional data components can store temporary data in
# The first key to this dict should always be the integration name
self.data = {}
@@ -504,6 +506,7 @@ class EsphomeCore:
self.dashboard = False
self.name = None
self.friendly_name = None
self.area = None
self.data = {}
self.config_path = None
self.build_path = None