Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
# Conflicts:
#	custom_components/idrac_power/binary_sensor.py
#	custom_components/idrac_power/button.py
#	custom_components/idrac_power/sensor.py
  • Loading branch information
Breina committed May 2, 2024
2 parents 3c90414 + 2c612dc commit e068436
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Youc can also start the server from Home Assistant.

For this to work, the Redfish service must be running on it.

Tested on iDrac 8 on Dell PowerEdge R730 servers.
Tested on iDrac 7 and 8 on multiple Dell PowerEdge servers.

## Screenshots

Expand Down
2 changes: 1 addition & 1 deletion custom_components/idrac_power/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry, async_add_e
serial = info[JSON_SERIAL_NUMBER]

device_info = DeviceInfo(
identifiers={('serial', serial)},
identifiers={(DOMAIN, serial)},
name=name,
manufacturer=manufacturer,
model=model,
Expand Down
6 changes: 3 additions & 3 deletions custom_components/idrac_power/button.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry, async_add_e
serial = info[JSON_SERIAL_NUMBER]

device_info = DeviceInfo(
identifiers={('serial', serial)},
identifiers={(DOMAIN, serial)},
name=name,
manufacturer=manufacturer,
model=model,
Expand All @@ -37,7 +37,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry, async_add_e
)

async_add_entities([
IdracPowerONButton(hass, rest_client, device_info, f"{serial}_{name}_status", name),
IdracPowerONButton(hass, rest_client, device_info, f"{serial}_{name}_power_on", name),
IdracRefreshButton(hass, rest_client, device_info, f"{serial}_{name}_refresh", name)
])

Expand Down Expand Up @@ -70,7 +70,7 @@ def __init__(self, hass, rest: IdracRest, device_info, unique_id, name):
self.rest = rest

self.entity_description = ButtonEntityDescription(
key='power_on',
key='refresh',
name=f"Refresh {name}",
icon='mdi:power',
device_class=ButtonDeviceClass.UPDATE,
Expand Down
2 changes: 1 addition & 1 deletion custom_components/idrac_power/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry, async_add_e
serial = info[JSON_SERIAL_NUMBER]

device_info = DeviceInfo(
identifiers={('serial', serial)},
identifiers={(DOMAIN, serial)},
name=name,
manufacturer=manufacturer,
model=model,
Expand Down

0 comments on commit e068436

Please sign in to comment.