Skip to content

Commit

Permalink
Remove Ohme prefix from attribute names
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-r committed Dec 27, 2023
1 parent 4aa76c7 commit f74039c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions custom_components/ohme/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class ConnectedSensor(
BinarySensorEntity):
"""Binary sensor for if car is plugged in."""

_attr_name = "Ohme Car Connected"
_attr_name = "Car Connected"
_attr_device_class = BinarySensorDeviceClass.PLUG

def __init__(
Expand Down Expand Up @@ -78,7 +78,7 @@ class ChargingSensor(
BinarySensorEntity):
"""Binary sensor for if car is charging."""

_attr_name = "Ohme Car Charging"
_attr_name = "Car Charging"
_attr_device_class = BinarySensorDeviceClass.BATTERY_CHARGING

def __init__(
Expand Down
6 changes: 3 additions & 3 deletions custom_components/ohme/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ async def async_setup_entry(

class PowerDrawSensor(CoordinatorEntity[OhmeUpdateCoordinator], SensorEntity):
"""Sensor for car power draw."""
_attr_name = "Ohme Power Draw"
_attr_name = "Current Power Draw"
_attr_native_unit_of_measurement = UnitOfPower.WATT
_attr_device_class = SensorDeviceClass.POWER

Expand Down Expand Up @@ -74,7 +74,7 @@ def native_value(self):

class EnergyUsageSensor(CoordinatorEntity[OhmeStatisticsUpdateCoordinator], SensorEntity):
"""Sensor for total energy usage."""
_attr_name = "Ohme Accumulative Energy Usage"
_attr_name = "Accumulative Energy Usage"
_attr_native_unit_of_measurement = UnitOfEnergy.KILO_WATT_HOUR
_attr_device_class = SensorDeviceClass.ENERGY

Expand Down Expand Up @@ -116,7 +116,7 @@ def native_value(self):

class NextSlotSensor(CoordinatorEntity[OhmeStatisticsUpdateCoordinator], SensorEntity):
"""Sensor for next smart charge slot."""
_attr_name = "Ohme Next Smart Charge Slot"
_attr_name = "Next Smart Charge Slot"
_attr_device_class = SensorDeviceClass.TIMESTAMP

def __init__(
Expand Down
4 changes: 2 additions & 2 deletions custom_components/ohme/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ async def async_setup_entry(

class OhmePauseCharge(CoordinatorEntity[OhmeUpdateCoordinator], SwitchEntity):
"""Switch for pausing a charge."""
_attr_name = "Ohme Pause Charge"
_attr_name = "Pause Charge"

def __init__(self, coordinator, hass: HomeAssistant, client):
super().__init__(coordinator=coordinator)
Expand Down Expand Up @@ -91,7 +91,7 @@ async def async_turn_off(self):

class OhmeMaxCharge(CoordinatorEntity[OhmeUpdateCoordinator], SwitchEntity):
"""Switch for pausing a charge."""
_attr_name = "Ohme Max Charge"
_attr_name = "Max Charge"

def __init__(self, coordinator, hass: HomeAssistant, client):
super().__init__(coordinator=coordinator)
Expand Down

0 comments on commit f74039c

Please sign in to comment.