Skip to content

Commit

Permalink
fix ruff issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ucpy7374 committed Mar 27, 2024
1 parent d733a56 commit d4dcf97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/deltadore_tydom/tydom/tydom_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,12 +525,12 @@ async def get_poll_device_data(self, url):

def add_poll_device_url_1s(self, url):
"""Add a device for polling."""
if not url in self.poll_device_urls_1s:
if url not in self.poll_device_urls_1s:
self.poll_device_urls_1s.append(url)

def add_poll_device_url_5m(self, url):
"""Add a device for polling."""
if not url in self.poll_device_urls_5m:
if url not in self.poll_device_urls_5m:
self.poll_device_urls_5m.append(url)

async def get_moments(self):
Expand Down

0 comments on commit d4dcf97

Please sign in to comment.