Skip to content

Commit

Permalink
Merge pull request #4 from blakadder/icons
Browse files Browse the repository at this point in the history
Change icons
  • Loading branch information
jonnybergdahl authored Dec 12, 2023
2 parents 3b0651e + 96031b4 commit 14c6270
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions custom_components/growcube/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def icon(self):
if self.is_on:
return "mdi:water-alert"
else:
return "mdi:water"
return "mdi:water-check"

@property
def is_on(self):
Expand Down Expand Up @@ -162,9 +162,9 @@ def device_info(self) -> DeviceInfo | None:
@property
def icon(self):
if self.is_on:
return "mdi:pump-off"
return "mdi:thermometer-probe-off"
else:
return "mdi:pump"
return "mdi:thermometer-probe"

@property
def is_on(self):
Expand Down
2 changes: 1 addition & 1 deletion custom_components/growcube/button.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def device_info(self) -> DeviceInfo | None:

@property
def icon(self):
return "mdi:water-pump"
return "mdi:watering-can"

async def async_press(self):
await self._coordinator.water_plant(self._channel)
2 changes: 1 addition & 1 deletion custom_components/growcube/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def device_info(self) -> DeviceInfo | None:

@property
def icon(self):
return "mdi:waves"
return "mdi:cup-water"

@callback
def _handle_coordinator_update(self) -> None:
Expand Down

0 comments on commit 14c6270

Please sign in to comment.