Skip to content

Commit

Permalink
3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
spacemanspiff2007 committed Aug 5, 2024
1 parent 99dc6c3 commit f2a278e
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 7 deletions.
6 changes: 3 additions & 3 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Packages required to build the documentation
sphinx == 7.2.6
sphinx-autodoc-typehints == 2.0.0
sphinx == 7.4.7
sphinx-autodoc-typehints == 2.2.3
sphinx_rtd_theme == 2.0.0
sphinx-exec-code == 0.12
autodoc_pydantic == 2.1.0
autodoc_pydantic == 2.2.0
4 changes: 4 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ To read from the serial port an IR to USB reader for energy meter is required.

# Changelog

#### 3.1 (2024-08-05)
- Updated dependencies
- Added some small log messages

#### 3.0 (2024-04-24)

**BREAKING CHANGE**
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ pytest-asyncio == 0.23.8
aioresponses == 0.7.6

# Linter
ruff == 0.5.5
ruff == 0.5.6
2 changes: 1 addition & 1 deletion requirements_setup.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ pyserial-asyncio == 0.6
easyconfig == 0.3.2
pydantic == 2.8.2
smllib == 1.4
aiohttp == 3.10.0
aiohttp == 3.10.1
7 changes: 6 additions & 1 deletion src/sml2mqtt/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,14 @@ async def a_main():
device.frame_handler = device.analyze_frame

# Start all devices
log.debug(f'Starting {len(ALL_DEVICES):d} device{"" if len(ALL_DEVICES) == 1 else "s":s}')
await ALL_DEVICES.start()

except Exception:
except Exception as e:
log.error(f'{e.__class__.__name__} during startup: {e}')
for line in traceback.format_exc().splitlines():
log.error(line)

await do_shutdown_async()

# Keep tasks running
Expand Down
2 changes: 1 addition & 1 deletion src/sml2mqtt/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '3.0'
__version__ = '3.1'
3 changes: 3 additions & 0 deletions src/sml2mqtt/sml_device/sml_devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,8 @@ def check_status(self):

return None

def __len__(self) -> int:
return len(self._devices)


ALL_DEVICES: Final = SmlDevices()

0 comments on commit f2a278e

Please sign in to comment.