Olen / homeassistant-plant

Alternative Plant component of home assistant
365 stars 25 forks source link

`missing 1 required keyword-only argument: 'max_sub_interval'` error on HA 2024.7.0b0 #174

Closed hmmbob closed 4 months ago

hmmbob commented 4 months ago

Upgrading to latest HA beta 2024.7.0b0 throws the following error for each plant:

2024-06-26 17:30:53.125 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up plant platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 364, in _async_setup_platform
await asyncio.shield(awaitable)
File "/config/custom_components/plant/sensor.py", line 126, in async_setup_entry
pintegral = PlantTotalLightIntegral(hass, entry, pcurppfd, plant)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/plant/sensor.py", line 531, in __init__
super().__init__(
TypeError: IntegrationSensor.__init__() missing 1 required keyword-only argument: 'max_sub_interval'

Using 2024.6.0 of the plant component. HA 2024.6 worked without error