mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
Add ESPHome sensor force_update option (#28059)
* Add ESPHome sensor force_update option * Update aioesphomeapi to 2.4.0
This commit is contained in:
parent
269c8f1d14
commit
ba10d5d604
@ -4,7 +4,7 @@
|
||||
"config_flow": true,
|
||||
"documentation": "https://www.home-assistant.io/integrations/esphome",
|
||||
"requirements": [
|
||||
"aioesphomeapi==2.2.0"
|
||||
"aioesphomeapi==2.4.0"
|
||||
],
|
||||
"dependencies": [],
|
||||
"zeroconf": ["_esphomelib._tcp.local."],
|
||||
|
@ -57,6 +57,11 @@ class EsphomeSensor(EsphomeEntity):
|
||||
"""Return the icon."""
|
||||
return self._static_info.icon
|
||||
|
||||
@property
|
||||
def force_update(self) -> bool:
|
||||
"""Return if this sensor should force a state update."""
|
||||
return self._static_info.force_update
|
||||
|
||||
@esphome_state_property
|
||||
def state(self) -> Optional[str]:
|
||||
"""Return the state of the entity."""
|
||||
|
@ -139,7 +139,7 @@ aiobotocore==0.10.2
|
||||
aiodns==2.0.0
|
||||
|
||||
# homeassistant.components.esphome
|
||||
aioesphomeapi==2.2.0
|
||||
aioesphomeapi==2.4.0
|
||||
|
||||
# homeassistant.components.freebox
|
||||
aiofreepybox==0.0.8
|
||||
|
@ -70,7 +70,7 @@ aioautomatic==0.6.5
|
||||
aiobotocore==0.10.2
|
||||
|
||||
# homeassistant.components.esphome
|
||||
aioesphomeapi==2.2.0
|
||||
aioesphomeapi==2.4.0
|
||||
|
||||
# homeassistant.components.emulated_hue
|
||||
# homeassistant.components.http
|
||||
|
Loading…
x
Reference in New Issue
Block a user