Traceback (most recent call last):


 "/<<PKGBUILDDIR>>/tests/unit/templates/test_jinja.py", line 270, in test_macro_additional_log_for_undefined

with patch.object(SaltCacheLoader, 'file_client', MagicMock(return_value=fc)):
AttributeError: 'MagicMock' object has no attribute 'object'

Traceback (most recent call last):


 "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 324, in _async_add_entity

await entity.async_device_update(warning=False)


 "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 476, in async_device_update

await self.hass.async_add_executor_job(self.update)


 "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run

result = self.fn(*self.args, **self.kwargs)


 "/usr/src/homeassistant/homeassistant/components/tplink/light.py", line 254, in update

self._light_state = self._get_light_state_retry()


 "/usr/src/homeassistant/homeassistant/components/tplink/light.py", line 314, in _get_light_state_retry

return self._get_light_state()


 "/usr/src/homeassistant/homeassistant/components/tplink/light.py", line 360, in _get_light_state

return self._light_state_from_params(self.smartbulb.get_light_state())
AttributeError: 'SmartPlug' object has no attribute 'get_light_state'
