0b3b589457110f1b2671298c80fa31ff948f91b0,tests/components/ring/test_sensor.py,TestRingSensorSetup,test_sensor,#TestRingSensorSetup#Any#,54

Before Change


            "https://api.ring.com/clients_api/chimes/999999/health",
            text=load_fixture("ring_chime_health_attrs.json"),
        )
        base_ring.setup(self.hass, VALID_CONFIG)
        ring.setup_platform(self.hass, self.config, self.add_entities, None)

        for device in self.DEVICES:
            device.update()

After Change


            text=load_fixture("ring_chime_health_attrs.json"),
        )

        with mock_storage(), patch("homeassistant.components.ring.PLATFORMS", []):
            run_coroutine_threadsafe(
                base_ring.async_setup(self.hass, VALID_CONFIG), self.hass.loop
            ).result()
            run_coroutine_threadsafe(
                self.hass.async_block_till_done(), self.hass.loop
            ).result()
            run_coroutine_threadsafe(
                ring.async_setup_entry(self.hass, None, self.add_entities),
                self.hass.loop,
            ).result()

        for device in self.DEVICES:
            device.update()
            if device.name == "Front Battery":
                expected_icon = icon_for_battery_level(
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 21

Instances


Project Name: home-assistant/home-assistant
Commit Name: 0b3b589457110f1b2671298c80fa31ff948f91b0
Time: 2020-01-10
Author: balloob@gmail.com
File Name: tests/components/ring/test_sensor.py
Class Name: TestRingSensorSetup
Method Name: test_sensor


Project Name: home-assistant/home-assistant
Commit Name: 3f29c234b8b2cae1c754bf55cdb2f283f8a62701
Time: 2020-01-10
Author: balloob@gmail.com
File Name: tests/components/ring/test_binary_sensor.py
Class Name: TestRingBinarySensorSetup
Method Name: test_binary_sensor


Project Name: home-assistant/home-assistant
Commit Name: 0b3b589457110f1b2671298c80fa31ff948f91b0
Time: 2020-01-10
Author: balloob@gmail.com
File Name: tests/components/ring/test_binary_sensor.py
Class Name: TestRingBinarySensorSetup
Method Name: test_binary_sensor


Project Name: home-assistant/home-assistant
Commit Name: 3f29c234b8b2cae1c754bf55cdb2f283f8a62701
Time: 2020-01-10
Author: balloob@gmail.com
File Name: tests/components/ring/test_sensor.py
Class Name: TestRingSensorSetup
Method Name: test_sensor