Skip to content

Commit

Permalink
Merge pull request #169 from hmmbob/patch-2
Browse files Browse the repository at this point in the history
Changes in setup entity platforms with group integration
  • Loading branch information
Olen committed Jun 6, 2024
2 parents 0b674dc + a1c5cdf commit 9b43436
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion custom_components/plant/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,17 @@
from homeassistant.const import STATE_OK, STATE_PROBLEM
from homeassistant.core import HomeAssistant, callback

from .const import DOMAIN


@callback
def async_describe_on_off_states(
hass: HomeAssistant, registry: GroupIntegrationRegistry
) -> None:
"""Describe group on off states."""
registry.on_off_states({STATE_OK}, STATE_PROBLEM)
registry.on_off_states(
DOMAIN,
{STATE_OK},
STATE_OK,
STATE_PROBLEM,
)

0 comments on commit 9b43436

Please sign in to comment.