File tree Expand file tree Collapse file tree 7 files changed +21
-0
lines changed
homeassistant/components/fritzbox Expand file tree Collapse file tree 7 files changed +21
-0
lines changed Original file line number Diff line number Diff line change 2121from .entity import FritzBoxDeviceEntity
2222from .model import FritzEntityDescriptionMixinBase
2323
24+ # Coordinator handles data updates, so we can allow unlimited parallel updates
25+ PARALLEL_UPDATES = 0
26+
2427
2528@dataclass (frozen = True , kw_only = True )
2629class FritzBinarySensorEntityDescription (
Original file line number Diff line number Diff line change 1111from .coordinator import FritzboxConfigEntry
1212from .entity import FritzBoxEntity
1313
14+ # Coordinator handles data updates, so we can allow unlimited parallel updates
15+ PARALLEL_UPDATES = 0
16+
1417
1518async def async_setup_entry (
1619 hass : HomeAssistant ,
Original file line number Diff line number Diff line change 2323from .entity import FritzBoxDeviceEntity
2424from .sensor import value_scheduled_preset
2525
26+ # Coordinator handles data updates, so we can allow unlimited parallel updates
27+ PARALLEL_UPDATES = 0
28+
2629HVAC_MODES = [HVACMode .HEAT , HVACMode .OFF ]
2730PRESET_HOLIDAY = "holiday"
2831PRESET_SUMMER = "summer"
Original file line number Diff line number Diff line change 1616from .coordinator import FritzboxConfigEntry
1717from .entity import FritzBoxDeviceEntity
1818
19+ # Coordinator handles data updates, so we can allow unlimited parallel updates
20+ PARALLEL_UPDATES = 0
21+
1922
2023async def async_setup_entry (
2124 hass : HomeAssistant ,
Original file line number Diff line number Diff line change 1818from .coordinator import FritzboxConfigEntry , FritzboxDataUpdateCoordinator
1919from .entity import FritzBoxDeviceEntity
2020
21+ # Coordinator handles data updates, so we can allow unlimited parallel updates
22+ PARALLEL_UPDATES = 0
23+
2124
2225async def async_setup_entry (
2326 hass : HomeAssistant ,
Original file line number Diff line number Diff line change 3434from .entity import FritzBoxDeviceEntity
3535from .model import FritzEntityDescriptionMixinBase
3636
37+ # Coordinator handles data updates, so we can allow unlimited parallel updates
38+ PARALLEL_UPDATES = 0
39+
3740
3841@dataclass (frozen = True , kw_only = True )
3942class FritzSensorEntityDescription (
Original file line number Diff line number Diff line change 1313from .coordinator import FritzboxConfigEntry
1414from .entity import FritzBoxDeviceEntity
1515
16+ # Coordinator handles data updates, so we can allow unlimited parallel updates
17+ PARALLEL_UPDATES = 0
18+
1619
1720async def async_setup_entry (
1821 hass : HomeAssistant ,
You can’t perform that action at this time.
0 commit comments