Make attribute names in dnsip lowercase (for translation) (#119727)

This commit is contained in:
G Johansson 2024-06-21 11:43:53 +02:00 committed by GitHub
parent fde7ddfa71
commit 5cdafba667
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 19 additions and 2 deletions

View File

@ -89,8 +89,8 @@ class WanIpSensor(SensorEntity):
self.querytype = "AAAA" if ipv6 else "A"
self._retries = DEFAULT_RETRIES
self._attr_extra_state_attributes = {
"Resolver": resolver,
"Querytype": self.querytype,
"resolver": resolver,
"querytype": self.querytype,
}
self._attr_device_info = DeviceInfo(
entry_type=DeviceEntryType.SERVICE,

View File

@ -32,5 +32,22 @@
"error": {
"invalid_resolver": "Invalid IP address or port for resolver"
}
},
"entity": {
"sensor": {
"dnsip": {
"state_attributes": {
"resolver": {
"name": "Resolver"
},
"querytype": {
"name": "Query type"
},
"ip_addresses": {
"name": "IP addresses"
}
}
}
}
}
}