Garulf / HA-Commander

Search, and interact with Home Assistant from Wox/Flow Launcher
22 stars 4 forks source link

AttributeError #66

Open robertoleonardo opened 3 hours ago

robertoleonardo commented 3 hours ago

Please type any relevant information here

started getting this error today on multiple machines. i did get a new iphone recently but the plugins been working fine for a few days since adding it to my HA so i don't think that's the issue despite the error mentioning iphone. unclear why this happened all of a sudden in the last few hours though, i don't think ha was updated or anything in that time

Trace Log

``` Traceback (most recent call last): File "C:\Users\RJL\AppData\Roaming\FlowLauncher\Plugins\HA-Commander-5.2.0\lib\flox\launcher.py", line 41, in run results = request_method(*request_parameters) or self._results ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\RJL\AppData\Roaming\FlowLauncher\Plugins\HA-Commander-5.2.0\lib\flox\__init__.py", line 132, in _query self.query(query) File "C:\Users\RJL\AppData\Roaming\FlowLauncher\Plugins\HA-Commander-5.2.0\plugin\main.py", line 53, in query states = self.client.states() ^^^^^^^^^^^^^^^^^^^^ File "C:\Users\RJL\AppData\Roaming\FlowLauncher\Plugins\HA-Commander-5.2.0\plugin\homeassistant.py", line 122, in states entities.append(self.create_entity(entity)) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\RJL\AppData\Roaming\FlowLauncher\Plugins\HA-Commander-5.2.0\plugin\homeassistant.py", line 147, in create_entity return _cls(self, entity) ^^^^^^^^^^^^^^^^^^ File "C:\Users\RJL\AppData\Roaming\FlowLauncher\Plugins\HA-Commander-5.2.0\plugin\homeassistant.py", line 328, in __init__ getattr(self, current_source).icon = "radiobox-marked" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'MediaPlayer' object has no attribute 'iPhone' ```

robertoleonardo commented 3 hours ago

sorry - disregard this. a re-install seems to fix the issue. odd that it happened on both machines and was so simply to fix, but whatever - it works now :)