Skip to content

Commit

Permalink
[#28] Fix the code lint warning messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
Stéphane Senart committed Jan 11, 2025
1 parent eca9e07 commit 7299007
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions tests/test_gazpar.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ def setup_method(self): # pylint: disable=R0801
class. setup_method is invoked for every test method of a class.
"""
# Load configuration
self._config = config_utils.ConfigLoader(
self._config = config_utils.ConfigLoader( # pylint: disable=W0201
"config/configuration.yaml", "config/secrets.yaml"
) # pylint: disable=W0201
)
self._config.load_secrets()
self._config.load_config()

Expand All @@ -27,13 +27,13 @@ def setup_method(self): # pylint: disable=R0801
ha_endpoint = self._config.get("homeassistant.endpoint")
ha_token = self._config.get("homeassistant.token")

self._haws = HomeAssistantWS(
self._haws = HomeAssistantWS( # pylint: disable=W0201
ha_host, ha_port, ha_endpoint, ha_token
) # pylint: disable=W0201
)

self._grdf_device_config = self._config.get("grdf.devices")[
self._grdf_device_config = self._config.get("grdf.devices")[ # pylint: disable=W0201
0
] # pylint: disable=W0201
]

# ----------------------------------
@pytest.mark.skip(reason="Requires Home Assistant server")
Expand Down
8 changes: 4 additions & 4 deletions tests/test_haws.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ def setup_method(self):
class. setup_method is invoked for every test method of a class.
"""
# Load configuration
self._config = config_utils.ConfigLoader(
self._config = config_utils.ConfigLoader( # pylint: disable=W0201
"config/configuration.yaml", "config/secrets.yaml"
) # pylint: disable=W0201
)
self._config.load_secrets()
self._config.load_config()

Expand All @@ -28,9 +28,9 @@ def setup_method(self):
ha_endpoint = self._config.get("homeassistant.endpoint")
ha_token = self._config.get("homeassistant.token")

self._haws = HomeAssistantWS(
self._haws = HomeAssistantWS( # pylint: disable=W0201
ha_host, ha_port, ha_endpoint, ha_token
) # pylint: disable=W0201
)

# ----------------------------------
@pytest.mark.skip(reason="Requires Home Assistant server")
Expand Down

0 comments on commit 7299007

Please sign in to comment.