Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion homeassistant/components/logi_circle/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from homeassistant.helpers.dispatcher import async_dispatcher_connect

from .const import (
ATTRIBUTION, DOMAIN as LOGI_CIRCLE_DOMAIN, LED_MODE_KEY,
ATTRIBUTION, DEVICE_BRAND, DOMAIN as LOGI_CIRCLE_DOMAIN, LED_MODE_KEY,
RECORDING_MODE_KEY, SIGNAL_LOGI_CIRCLE_RECONFIGURE,
SIGNAL_LOGI_CIRCLE_RECORD, SIGNAL_LOGI_CIRCLE_SNAPSHOT)

Expand Down Expand Up @@ -98,6 +98,19 @@ def supported_features(self):
"""Logi Circle camera's support turning on and off ("soft" switch)."""
return SUPPORT_ON_OFF

@property
def device_info(self):
"""Return information about the device."""
return {
'name': self._camera.name,
'identifiers': {
(LOGI_CIRCLE_DOMAIN, self._camera.id)
},
'model': self._camera.model_name,
'sw_version': self._camera.firmware,
'manufacturer': DEVICE_BRAND
}

@property
def device_state_attributes(self):
"""Return the state attributes."""
Expand Down
16 changes: 15 additions & 1 deletion homeassistant/components/logi_circle/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
from homeassistant.util.dt import as_local

from .const import (
ATTRIBUTION, DOMAIN as LOGI_CIRCLE_DOMAIN, LOGI_SENSORS as SENSOR_TYPES)
ATTRIBUTION, DEVICE_BRAND, DOMAIN as LOGI_CIRCLE_DOMAIN,
LOGI_SENSORS as SENSOR_TYPES)

_LOGGER = logging.getLogger(__name__)

Expand Down Expand Up @@ -66,6 +67,19 @@ def state(self):
"""Return the state of the sensor."""
return self._state

@property
def device_info(self):
"""Return information about the device."""
return {
'name': self._camera.name,
'identifiers': {
(LOGI_CIRCLE_DOMAIN, self._camera.id)
},
'model': self._camera.model_name,
'sw_version': self._camera.firmware,
'manufacturer': DEVICE_BRAND
}

@property
def device_state_attributes(self):
"""Return the state attributes."""
Expand Down