Add Rain Bird irrigation calendar (#87604)
* Initial version of a calendar for the rainbird integration * Improve calendar support * Revert changes to test fixtures * Address ruff error * Fix background task scheduling * Use pytest.mark.freezetime to move to test setup * Address PR feedback * Make refresh a member * Merge rainbird and calendar changes * Increase test coverage * Readability improvements * Simplify timezone handling
This commit is contained in:
parent
18f29993c5
commit
fa2d77407a
11 changed files with 488 additions and 23 deletions
|
@ -31,7 +31,7 @@ async def async_setup_entry(
|
|||
async_add_entities: AddEntitiesCallback,
|
||||
) -> None:
|
||||
"""Set up entry for a Rain Bird binary_sensor."""
|
||||
coordinator = hass.data[DOMAIN][config_entry.entry_id]
|
||||
coordinator = hass.data[DOMAIN][config_entry.entry_id].coordinator
|
||||
async_add_entities([RainBirdSensor(coordinator, RAIN_SENSOR_ENTITY_DESCRIPTION)])
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue