Skip to content

Commit

Permalink
hassfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Yonsm committed Apr 6, 2023
1 parent 176d62d commit a5ba403
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions extras/setup/HassFix.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh
# Docker HASS=/usr/src/homeassistant/homeassistant
cd /usr/lib/python3.10/site-packages/homeassistant
cd /usr/src/homeassistant/homeassistant

sed -i 's/_LOGGER.warning(CUSTOM_WARNING/#LOGGER.warning(CUSTOM_WARNING/' loader.py
sed -i 's/minutes=30/days=30/' auth/const.py
Expand All @@ -9,8 +9,5 @@ sed -i 's/await hass.config_entries.async_forward_entry_setups/#wait hass.config

sed -i 's/Platform.BUTTON/#latform.BUTTON/' components/braviatv/__init__.py
sed -i 's/f"{ATTR_MANUFACTURER} {model}"/model/' components/braviatv/entity.py
#sed -i 's/await self.coordinator.async_turn_off()/await self.coordinator.async_turn_off(); await self.coordinator.async_turn_off()/' components/braviatv/media_player.py

#sed -i 's/f"{device.name} Remote"/device.name/' components/broadlink/remote.py
#sed -i 's/f"{device.name} Switch"/device.name/' components/broadlink/switch.py
sed -i 's/"RM4PRO", "RM4MINI"/"RM4PRO", "RMPRO", "RM4MINI"/' components/broadlink/sensor.py

0 comments on commit a5ba403

Please sign in to comment.