Skip to content

Commit

Permalink
Updated version of device
Browse files Browse the repository at this point in the history
  • Loading branch information
AfonsoFGarcia committed Sep 6, 2023
1 parent fd1aa60 commit 100c6f6
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 14 deletions.
10 changes: 5 additions & 5 deletions custom_components/bluecon/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from homeassistant.helpers.entity import DeviceInfo
from bluecon import BlueConAPI

from .const import DOMAIN, SIGNAL_CALL_ENDED, SIGNAL_CALL_STARTED
from .const import DEVICE_MANUFACTURER, DOMAIN, HASS_BLUECON_VERSION, SIGNAL_CALL_ENDED, SIGNAL_CALL_STARTED

STATE_CONNECTED = "Connected"

Expand Down Expand Up @@ -88,9 +88,9 @@ def device_info(self) -> DeviceInfo | None:
(DOMAIN, self.deviceId)
},
name = f'{self.__model} {self.deviceId}',
manufacturer = 'Fermax',
manufacturer = DEVICE_MANUFACTURER,
model = self.__model,
sw_version = '0.0.1'
sw_version = HASS_BLUECON_VERSION
)

class BlueConConnectionStatusBinarySensor(BinarySensorEntity):
Expand Down Expand Up @@ -119,9 +119,9 @@ def device_info(self) -> DeviceInfo | None:
(DOMAIN, self.deviceId)
},
name = f'{self.__model} {self.deviceId}',
manufacturer = 'Fermax',
manufacturer = DEVICE_MANUFACTURER,
model = self.__model,
sw_version = '0.0.1'
sw_version = HASS_BLUECON_VERSION
)

async def async_update(self):
Expand Down
6 changes: 3 additions & 3 deletions custom_components/bluecon/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from bluecon import BlueConAPI

from .const import DOMAIN, SIGNAL_CALL_ENDED
from .const import DEVICE_MANUFACTURER, DOMAIN, HASS_BLUECON_VERSION, SIGNAL_CALL_ENDED

async def async_setup_entry(hass, config, async_add_entities):
bluecon : BlueConAPI = hass.data[DOMAIN][config.entry_id]
Expand Down Expand Up @@ -58,9 +58,9 @@ def device_info(self) -> DeviceInfo | None:
(DOMAIN, self.deviceId)
},
name = f'{self.__model} {self.deviceId}',
manufacturer = 'Fermax',
manufacturer = DEVICE_MANUFACTURER,
model = self.__model,
sw_version = '0.0.1'
sw_version = HASS_BLUECON_VERSION
)

def camera_image(self, width: int | None = None, height: int | None = None) -> bytes | None:
Expand Down
3 changes: 3 additions & 0 deletions custom_components/bluecon/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@
SIGNAL_CALL_ENDED = "bluecon_call_ended_{}"

CONF_LOCK_STATE_RESET = "lockStateReset"

DEVICE_MANUFACTURER = "Fermax"
HASS_BLUECON_VERSION = "0.2.0"
6 changes: 3 additions & 3 deletions custom_components/bluecon/lock.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import asyncio
from .const import DOMAIN, CONF_LOCK_STATE_RESET
from .const import DEVICE_MANUFACTURER, DOMAIN, CONF_LOCK_STATE_RESET, HASS_BLUECON_VERSION
from homeassistant.components.lock import LockEntity
from homeassistant.const import (
STATE_JAMMED,
Expand Down Expand Up @@ -96,7 +96,7 @@ def device_info(self) -> DeviceInfo | None:
(DOMAIN, self.deviceId)
},
name = f'{self.__model} {self.deviceId}',
manufacturer = 'Fermax',
manufacturer = DEVICE_MANUFACTURER,
model = self.__model,
sw_version = '0.0.1'
sw_version = HASS_BLUECON_VERSION
)
6 changes: 3 additions & 3 deletions custom_components/bluecon/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from homeassistant.helpers.entity import DeviceInfo
from bluecon import BlueConAPI

from .const import DOMAIN
from .const import DEVICE_MANUFACTURER, DOMAIN, HASS_BLUECON_VERSION

SIGNAL_TERRIBLE = "terrible"
SIGNAL_BAD = "bad"
Expand Down Expand Up @@ -59,9 +59,9 @@ def device_info(self) -> DeviceInfo | None:
(DOMAIN, self.deviceId)
},
name = f'{self.__model} {self.deviceId}',
manufacturer = 'Fermax',
manufacturer = DEVICE_MANUFACTURER,
model = self.__model,
sw_version = '0.0.1'
sw_version = HASS_BLUECON_VERSION
)

async def async_update(self):
Expand Down

0 comments on commit 100c6f6

Please sign in to comment.