core/homeassistant/components/kodi
mk-81 0df9006bf7
Fix Kodi on/off status (#117436)
* Fix Kodi Issue 104603

Fixes issue, that Kodi media player is displayed as online even when offline. The issue occurrs when using HTTP(S) only (no web Socket) integration after kodi was found online once.
Issue: In async_update the connection exceptions from self._kodi.get_players are not catched and therefore self._players (and the like) are not reset. The call of self._connection.connected returns always true for HTTP(S) connections.

Solution: Catch Exceptions from self._kodi.get_players und reset state in case of HTTP(S) only connection. Otherwise keep current behaviour.

* Fix Kodi Issue 104603 / code style adjustments

as requested
2024-05-14 21:02:17 +02:00
..
__init__.py
browse_media.py
config_flow.py
const.py
device_trigger.py
icons.json
manifest.json
media_player.py Fix Kodi on/off status (#117436) 2024-05-14 21:02:17 +02:00
notify.py
services.yaml
strings.json