Skip to content

Commit

Permalink
feat(sensor): Updated names of sensors to not include Octopus Energy
Browse files Browse the repository at this point in the history
This is to make it easier to find entities
  • Loading branch information
BottlecapDave committed Mar 18, 2023
1 parent e4a2f1d commit 07fdd8b
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def unique_id(self):
@property
def name(self):
"""Name of the sensor."""
return f"Octopus Energy Electricity {self._serial_number} {self._mpan} Current Consumption"
return f"Electricity {self._serial_number} {self._mpan} Current Consumption"

@property
def device_class(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def unique_id(self):
@property
def name(self):
"""Name of the sensor."""
return f"Octopus Energy Electricity {self._serial_number} {self._mpan} Current Demand"
return f"Electricity {self._serial_number} {self._mpan} Current Demand"

@property
def device_class(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def unique_id(self):
@property
def name(self):
"""Name of the sensor."""
return f"Octopus Energy Electricity {self._serial_number} {self._mpan}{self._export_name_addition} Current Rate"
return f"Electricity {self._serial_number} {self._mpan}{self._export_name_addition} Current Rate"

@property
def device_class(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def unique_id(self):
@property
def name(self):
"""Name of the sensor."""
return f"Octopus Energy Electricity {self._serial_number} {self._mpan}{self._export_name_addition} Next Rate"
return f"Electricity {self._serial_number} {self._mpan}{self._export_name_addition} Next Rate"

@property
def device_class(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def unique_id(self):
@property
def name(self):
"""Name of the sensor."""
return f"Octopus Energy Electricity {self._serial_number} {self._mpan}{self._export_name_addition} Previous Accumulative Consumption"
return f"Electricity {self._serial_number} {self._mpan}{self._export_name_addition} Previous Accumulative Consumption"

@property
def device_class(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def unique_id(self):
@property
def name(self):
"""Name of the sensor."""
return f"Octopus Energy Electricity {self._serial_number} {self._mpan}{self._export_name_addition} Previous Accumulative Cost"
return f"Electricity {self._serial_number} {self._mpan}{self._export_name_addition} Previous Accumulative Cost"

@property
def device_class(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def unique_id(self):
@property
def name(self):
"""Name of the sensor."""
return f"Octopus Energy Electricity {self._serial_number} {self._mpan}{self._export_name_addition} Previous Rate"
return f"Electricity {self._serial_number} {self._mpan}{self._export_name_addition} Previous Rate"

@property
def device_class(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def unique_id(self):
@property
def name(self):
"""Name of the sensor."""
return f'Octopus Energy Electricity {self._serial_number} {self._mpan}{self._export_name_addition} Current Standing Charge'
return f'Electricity {self._serial_number} {self._mpan}{self._export_name_addition} Current Standing Charge'

@property
def device_class(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def unique_id(self):
@property
def name(self):
"""Name of the sensor."""
return f"Octopus Energy Gas {self._serial_number} {self._mprn} Current Consumption"
return f"Gas {self._serial_number} {self._mprn} Current Consumption"

@property
def device_class(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def unique_id(self):
@property
def name(self):
"""Name of the sensor."""
return f'Octopus Energy Gas {self._serial_number} {self._mprn} Current Rate'
return f'Gas {self._serial_number} {self._mprn} Current Rate'

@property
def device_class(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def unique_id(self):
@property
def name(self):
"""Name of the sensor."""
return f"Octopus Energy Gas {self._serial_number} {self._mprn} Previous Accumulative Consumption"
return f"Gas {self._serial_number} {self._mprn} Previous Accumulative Consumption"

@property
def device_class(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def unique_id(self):
@property
def name(self):
"""Name of the sensor."""
return f"Octopus Energy Gas {self._serial_number} {self._mprn} Previous Accumulative Consumption (kWh)"
return f"Gas {self._serial_number} {self._mprn} Previous Accumulative Consumption (kWh)"

@property
def device_class(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def unique_id(self):
@property
def name(self):
"""Name of the sensor."""
return f"Octopus Energy Gas {self._serial_number} {self._mprn} Previous Accumulative Cost"
return f"Gas {self._serial_number} {self._mprn} Previous Accumulative Cost"

@property
def device_class(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def unique_id(self):
@property
def name(self):
"""Name of the sensor."""
return f'Octopus Energy Gas {self._serial_number} {self._mprn} Current Standing Charge'
return f'Gas {self._serial_number} {self._mprn} Current Standing Charge'

@property
def device_class(self):
Expand Down

0 comments on commit 07fdd8b

Please sign in to comment.