Skip to content

Commit

Permalink
Merge pull request #476 from robinostlund/fix-of-manifest
Browse files Browse the repository at this point in the history
fix some minor things for automatic tests
  • Loading branch information
robinostlund authored May 8, 2023
2 parents f543a36 + 417843e commit edab19e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
1 change: 0 additions & 1 deletion custom_components/volkswagencarnet/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,6 @@ async def async_step_select_instruments(self, user_input=None):
instruments_dict = {instrument.attr: instrument.name for instrument in d.instruments}

if user_input is not None:

options = {
**data["options"],
CONF_RESOURCES: user_input[CONF_RESOURCES],
Expand Down
18 changes: 12 additions & 6 deletions custom_components/volkswagencarnet/manifest.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
{
"domain": "volkswagencarnet",
"name": "Volkswagen WeConnect",
"after_dependencies": [
"http"
],
"codeowners": [
"@robinostlund"
],
"config_flow": true,
"dependencies": [],
"documentation": "https://github.com/robinostlund/homeassistant-volkswagencarnet/blob/master/README.md",
"integration_type": "hub",
"iot_class": "cloud_polling",
"issue_tracker": "https://github.com/robinostlund/homeassistant-volkswagencarnet/issues",
"dependencies": [],
"config_flow": true,
"codeowners": ["@robinostlund"],
"requirements": [],
"version": "v0.0.0",
"iot_class": "cloud_polling"
}
"version": "v0.0.0"
}
5 changes: 4 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ def auto_enable_custom_integrations(enable_custom_integrations):
@pytest.fixture
def bypass_setup_fixture():
"""Prevent setup."""
with patch("custom_components.volkswagencarnet.async_setup", return_value=True,), patch(
with patch(
"custom_components.volkswagencarnet.async_setup",
return_value=True,
), patch(
"custom_components.volkswagencarnet.async_setup_entry",
return_value=True,
):
Expand Down

0 comments on commit edab19e

Please sign in to comment.