Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrored_repos
HomeAssistant
Core
Commits
9f30cd78
Unverified
Commit
9f30cd78
authored
3 years ago
by
Guido Schmitz
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add configuration_url to devolo Home Control (#58594)
parent
808e067c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
homeassistant/components/devolo_home_control/devolo_device.py
+2
-0
2 additions, 0 deletions
...assistant/components/devolo_home_control/devolo_device.py
tests/components/devolo_home_control/mocks.py
+1
-0
1 addition, 0 deletions
tests/components/devolo_home_control/mocks.py
with
3 additions
and
0 deletions
homeassistant/components/devolo_home_control/devolo_device.py
+
2
−
0
View file @
9f30cd78
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
from
__future__
import
annotations
from
__future__
import
annotations
import
logging
import
logging
from
urllib.parse
import
urlparse
from
devolo_home_control_api.devices.zwave
import
Zwave
from
devolo_home_control_api.devices.zwave
import
Zwave
from
devolo_home_control_api.homecontrol
import
HomeControl
from
devolo_home_control_api.homecontrol
import
HomeControl
...
@@ -33,6 +34,7 @@ class DevoloDeviceEntity(Entity):
...
@@ -33,6 +34,7 @@ class DevoloDeviceEntity(Entity):
self
.
_attr_should_poll
=
False
self
.
_attr_should_poll
=
False
self
.
_attr_unique_id
=
element_uid
self
.
_attr_unique_id
=
element_uid
self
.
_attr_device_info
=
DeviceInfo
(
self
.
_attr_device_info
=
DeviceInfo
(
configuration_url
=
f
"
https://
{
urlparse
(
device_instance
.
href
).
netloc
}
"
,
identifiers
=
{(
DOMAIN
,
self
.
_device_instance
.
uid
)},
identifiers
=
{(
DOMAIN
,
self
.
_device_instance
.
uid
)},
manufacturer
=
device_instance
.
brand
,
manufacturer
=
device_instance
.
brand
,
model
=
device_instance
.
name
,
model
=
device_instance
.
name
,
...
...
This diff is collapsed.
Click to expand it.
tests/components/devolo_home_control/mocks.py
+
1
−
0
View file @
9f30cd78
...
@@ -45,6 +45,7 @@ class DeviceMock(Zwave):
...
@@ -45,6 +45,7 @@ class DeviceMock(Zwave):
self
.
name
=
"
Test Device
"
self
.
name
=
"
Test Device
"
self
.
uid
=
"
Test
"
self
.
uid
=
"
Test
"
self
.
settings_property
=
{
"
general_device_settings
"
:
SettingsMock
()}
self
.
settings_property
=
{
"
general_device_settings
"
:
SettingsMock
()}
self
.
href
=
"
https://www.mydevolo.com
"
class
BinarySensorMock
(
DeviceMock
):
class
BinarySensorMock
(
DeviceMock
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment