Group service / dynamic handling (#7971)
* Add Service to group * Finish service * Add service functions * fix lint * Address paulus comments * fix lint & cleanup * fix lint * fix lint * fix lint p3 * add test for check group * add more tests * fix lint * Update service.yaml * Fix order for tests * Fix comment * Fix test * Fix tests * Fix name in tests * Fix view * Fix default value * Fix lint * Fix key error * add name * migrate component entity * fix tests * fix import * migrate device tracker * fix lint * fix bug * fix logic * fix lint * fix tests * fix generator * fix group * fix other tests. * Not need to load group on first stage anymore. * fix service * add more group depency * fix tests * Revert "fix tests" This reverts commit 35a922b3a8d00821a00d153997b7be57117de328. * Real fix * fix test p2 * fix test p3 * fix test p4 * fix test p5 * fix test p6 * fix lint * fix test p7 * Rename attribute * fix group test * fix bug * fix flagy tests * fix service.yaml * fix lint
This commit is contained in:
parent
46f3088a70
commit
814834512a
27 changed files with 444 additions and 168 deletions
|
@ -14,6 +14,7 @@ from homeassistant.helpers.entity import Entity, generate_entity_id
|
|||
from homeassistant.helpers.entity_component import (
|
||||
EntityComponent, DEFAULT_SCAN_INTERVAL, SLOW_SETUP_WARNING)
|
||||
from homeassistant.helpers import entity_component
|
||||
from homeassistant.setup import setup_component
|
||||
|
||||
from homeassistant.helpers import discovery
|
||||
import homeassistant.util.dt as dt_util
|
||||
|
@ -76,6 +77,7 @@ class TestHelpersEntityComponent(unittest.TestCase):
|
|||
|
||||
def test_setting_up_group(self):
|
||||
"""Setup the setting of a group."""
|
||||
setup_component(self.hass, 'group', {'group': {}})
|
||||
component = EntityComponent(_LOGGER, DOMAIN, self.hass,
|
||||
group_name='everyone')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue