Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco committed Oct 26, 2020
1 parent bcc2458 commit 3d89578
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions homeassistant/components/somfy/cover.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from pymfy.api.devices.blind import Blind
from pymfy.api.devices.category import Category
import requests

from homeassistant.components.cover import (
ATTR_POSITION,
Expand Down Expand Up @@ -69,8 +68,6 @@ def close_cover(self, **kwargs):
# Blocks until the close command is sent
self.cover.close()
self._closed = True
except requests.exceptions.HTTPError:
raise
finally:
self._is_closing = None
self.schedule_update_ha_state()
Expand All @@ -83,8 +80,6 @@ def open_cover(self, **kwargs):
# Blocks until the open command is sent
self.cover.open()
self._closed = False
except requests.exceptions.HTTPError:
raise
finally:
self._is_opening = None
self.schedule_update_ha_state()
Expand Down

0 comments on commit 3d89578

Please sign in to comment.