Skip to content

Commit

Permalink
Merge pull request #232 from freol35241/relinting-for-black-24
Browse files Browse the repository at this point in the history
Running black on the whole codebase to satisfy black > 24. Also bumpi…
  • Loading branch information
freol35241 authored Dec 4, 2024
2 parents 5413d8f + def725e commit 5967598
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
10 changes: 6 additions & 4 deletions custom_components/ltss/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Support for recording details."""

import asyncio
import concurrent.futures
from contextlib import contextmanager
Expand Down Expand Up @@ -228,10 +229,10 @@ def notify_hass_started(event):
except exc.SQLAlchemyError:
updated = True
_LOGGER.exception("Error saving event: %s", event)
except:

except Exception:
updated = True
_LOGGER.exception("Error during saving event: %s", event)
_LOGGER.exception("Error during saving of event: %s", event)

if not updated:
_LOGGER.error(
Expand Down Expand Up @@ -285,7 +286,8 @@ def _setup_connection(self):
try:
con.execute(
text(
f"SELECT set_chunk_time_interval('{LTSS.__tablename__}', {self.chunk_time_interval})"
f"""SELECT set_chunk_time_interval('{LTSS.__tablename__}', {
self.chunk_time_interval})"""
)
)
except exc.ProgrammingError as exception:
Expand Down
1 change: 1 addition & 0 deletions custom_components/ltss/models.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Models for SQLAlchemy."""

import json
from datetime import datetime
import logging
Expand Down
2 changes: 1 addition & 1 deletion requirements.dev.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
-r requirements.txt
-r requirements.test.txt
black==23.10.1
black==24.10.0

0 comments on commit 5967598

Please sign in to comment.