Imow-webapi

Latest version: v0.8.4

Safety actively analyzes 638681 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 4

0.5.2

Bugfixes
- Also quote password string in auth request to support more special chars

0.5.1

Features
- python
mower.machine_error = 'M1120',
mower.machine_state = 'HOOD_BLOCKED',
mower.state_message: dict = {
'short': 'Hood blocked',
'long': 'The hood is blocked. Please check the hood and press the OK button on your machine (M1120).',
'legacyMessage': 'Abschaltung Automatikmode durch Bumper',
'errorId': 'M1120',
'error': True
}

Provide a machine usable string from the short message in english

0.5.0

Breaking Changes

- The ``MowerTask`` class is removed in favor of the new ``state_message`` property on th ``MowerState`` object.
- The ``MowerState.get_current_task()`` method now returns the `short` property of the state message instead of a ``MowerTask``
property and is now longer an ``async`` method.

Features

- python
mower.state_message -> dict
{
'short': 'Hood blocked',
'long': 'The hood is blocked. Please check the hood and press the OK button on your machine (M1120).',
'errorId': 'M1120',
'error': True
}

The MowerState Class now provides a state_message property which gives a ``short`` and``long`` text for
description (Besides an error indication and errorId). All error and status codes are now dynamically matched and
human readable available.
**This makes the ``MowerTask`` obsolete and it is removed with this release.**
- ``api = IMowApi(lang="en")``
The imow api can now be instanced with a language code (fallback to ``en``).
The ``state_message`` property displays the messages in the corresponding language.

0.4.5

Features

- Add 2 new identified Tasks within `MowerTask` (Thanks to lausser)
- Add `check_api_maintenance()` method to `IMowAPI` Class. Check if the api server is currently under maintenance.
This method is automatically called if the api server returns a 500 error response for any request.
- One should call the new `close()` method for the `IMowAPI` Class when finishing the api interactions to correctly
close the http session.

Bugfixes

- [Issue 8](https://github.com/ChrisHaPunkt/stihl-imow-webapi/issues/8) - Example not working

0.4.4

Features

- Add `validate_token()` method to `IMowAPI` Class. Test if a token is valid and is able to call the webapi.

0.4.3

Features

- Allow `IMowAPI` Class to use predefined `aiohttp` session when instantiating

Page 3 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.