1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 04:50:05 +00:00

Add SmartThings Climate platform (#20963)

* Add SmartThings Climate platform

* Add SmartThings Climate platform
This commit is contained in:
Andrew Sayre
2019-02-12 01:11:36 -06:00
committed by Martin Hjelmare
parent 0d98f9783f
commit e8ed56ca52
7 changed files with 493 additions and 4 deletions

View File

@@ -235,7 +235,8 @@ def config_entry_fixture(hass, installed_app, location):
def device_factory_fixture():
"""Fixture for creating mock devices."""
api = Mock(spec=Api)
api.post_device_command.return_value = mock_coro(return_value={})
api.post_device_command.side_effect = \
lambda *args, **kwargs: mock_coro(return_value={})
def _factory(label, capabilities, status: dict = None):
device_data = {