Skip to content

Commit e4e9dc5

Browse files
committed
Review fixes: duplicate __all__, missing Path imports, broken RST link, grammar, EOF newlines
1 parent cb905d6 commit e4e9dc5

5 files changed

Lines changed: 7 additions & 8 deletions

File tree

docs/CONTRIBUTING.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Option B. Setup a Home Assistant Development Environment.
6565
If you do not have a Home Assistant installation running already, you can setup a Home Assistant Development environment.
6666
This is basically a local, unpackaged, Home Assistant Core installation, that runs with just Python (no Docker or Operating System).
6767
You can start and stop the server really easily as it runs just in your
68-
terminal and gives you an large affordance of control over it, making it ideal for quickly testing your changes.
68+
terminal and gives you control over it, making it ideal for quickly testing your changes.
6969
Follow this great guide `here <https://developers.home-assistant.io/docs/development_environment>`__ to do that.
7070
You'll access the web dashboard to create the Long-Lived Access Token.
7171

docs/advanced.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ A convenient option is to use the :py:class:`niquests_cache.session.CachedSessio
2929
3030
3131
This creates an in-memory cache that expires after 300 seconds. You can adjust the `expire_after` value to fit your needs or set it to `-1` to disable expiration.
32-
For more information on the available caching options, see the `niquests_cache <https://niquests-cache.readthedocs.io/en/stable/>` documentation.
32+
For more information on the available caching options, see the `niquests_cache <https://niquests-cache.readthedocs.io/en/stable/>`__ documentation.
3333

3434

3535
Persistent Caching
@@ -39,7 +39,7 @@ If you want your cache to persist between runs (e.g. to a filesystem), you can p
3939

4040
.. code-block:: python
4141
42-
from datetime import timedelta
42+
from pathlib import Path
4343
from homeassistant_api import Client
4444
from niquests_cache.session import CachedSession
4545
@@ -57,7 +57,7 @@ If you want your cache to persist between runs (e.g. to a filesystem), you can p
5757
5858
# Or an example for async
5959
import asyncio
60-
from datetime import timedelta
60+
from pathlib import Path
6161
from homeassistant_api import AsyncClient
6262
from niquests_cache.session import AsyncCachedSession
6363

docs/api.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Websocket Models
7878

7979
.. automodule:: homeassistant_api.models.websocket
8080
:members:
81-
81+
8282
Request Processing
8383
==================
8484

@@ -90,4 +90,4 @@ Errors
9090
=======
9191

9292
.. automodule:: homeassistant_api.errors
93-
:members:
93+
:members:

homeassistant_api/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
"ServiceField",
5454
"State",
5555
"WebsocketClient",
56-
"WebsocketClient",
5756
)
5857

5958
from .asyncclient import AsyncClient

scripts/run_docs_dev.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/usr/bin/env bash
2-
sphinx-autobuild docs/ build/ --open-browser --port 8000 --watch examples/ --watch homeassistant_api/
2+
sphinx-autobuild docs/ build/ --open-browser --port 8000 --watch examples/ --watch homeassistant_api/

0 commit comments

Comments
 (0)