Skip to content

Commit

Permalink
Fix black
Browse files Browse the repository at this point in the history
  • Loading branch information
ollo69 committed Feb 1, 2023
1 parent 5ae1403 commit 976fff3
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions custom_components/samsungtv_smart/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,6 @@ def _try_connect_ws(self):
return RESULT_NOT_SUCCESSFUL

for port in (8001, 8002):

try:
_LOGGER.info(
"Try to configure SamsungTV %s using port %s",
Expand Down Expand Up @@ -482,7 +481,6 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
if DOMAIN in config:
entries_list = hass.config_entries.async_entries(DOMAIN)
for entry_config in config[DOMAIN]:

# get ip address
ip_address = entry_config[CONF_HOST]

Expand Down
1 change: 0 additions & 1 deletion custom_components/samsungtv_smart/api/samsungws.py
Original file line number Diff line number Diff line change
Expand Up @@ -1000,7 +1000,6 @@ def _start_client(self, *, start_all=False):
if self._client_art_supported > 0 and (
self._client_art is None or not self._client_art.is_alive()
):

if self._client_art_supported > 1:
self._client_art_supported = 0
self._client_art = Thread(target=self._client_art_thread)
Expand Down
2 changes: 0 additions & 2 deletions custom_components/samsungtv_smart/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,6 @@ def _power_off_in_progress(self):
async def _update_volume_info(self):
"""Update the volume info."""
if self._state == MediaPlayerState.ON:

# if self._st and self._setvolumebyst:
# self._attr_volume_level = self._st.volume
# self._attr_is_volume_muted = self._st.muted
Expand Down Expand Up @@ -547,7 +546,6 @@ def _get_running_app(self):

st_running_app = None
if self._app_list is not None:

for app, app_id in self._app_list.items():
if app_running := self._ws.is_app_running(app_id):
self._running_app = app
Expand Down

0 comments on commit 976fff3

Please sign in to comment.