Merge branch 'master' into device_debugging_option

This commit is contained in:
rospogrigio
2023-01-10 22:42:30 +01:00
committed by GitHub
5 changed files with 7 additions and 4 deletions

View File

@@ -83,6 +83,7 @@ CLOUD_SETUP_SCHEMA = vol.Schema(
} }
) )
DEVICE_SCHEMA = vol.Schema( DEVICE_SCHEMA = vol.Schema(
{ {
vol.Required(CONF_FRIENDLY_NAME): cv.string, vol.Required(CONF_FRIENDLY_NAME): cv.string,

View File

@@ -996,7 +996,6 @@ class TuyaProtocol(asyncio.Protocol, ContextualLogger):
) )
# self.debug("session local nonce: %r remote nonce: %r", self.local_nonce, self.remote_nonce) # self.debug("session local nonce: %r remote nonce: %r", self.local_nonce, self.remote_nonce)
rkey_hmac = hmac.new(self.local_key, self.remote_nonce, sha256).digest() rkey_hmac = hmac.new(self.local_key, self.remote_nonce, sha256).digest()
await self.exchange_quick(MessagePayload(SESS_KEY_NEG_FINISH, rkey_hmac), None) await self.exchange_quick(MessagePayload(SESS_KEY_NEG_FINISH, rkey_hmac), None)

View File

@@ -33,7 +33,8 @@
"options": { "options": {
"abort": { "abort": {
"already_configured": "Device has already been configured.", "already_configured": "Device has already been configured.",
"device_success": "Device {dev_name} successfully {action}." "device_success": "Device {dev_name} successfully {action}.",
"no_entities": "Cannot remove all entities from a device.\nIf you want to delete a device, enter it in the Devices menu, click the 3 dots in the 'Device info' frame, and press the Delete button."
}, },
"error": { "error": {
"authentication_failed": "Failed to authenticate.\n{msg}", "authentication_failed": "Failed to authenticate.\n{msg}",

View File

@@ -33,7 +33,8 @@
"options": { "options": {
"abort": { "abort": {
"already_configured": "Il dispositivo è già stato configurato.", "already_configured": "Il dispositivo è già stato configurato.",
"device_success": "Dispositivo {dev_name} {action} con successo." "device_success": "Dispositivo {dev_name} {action} con successo.",
"no_entities": "Non si possono rimuovere tutte le entities da un device.\nPer rimuovere un device, entrarci nel menu Devices, premere sui 3 punti nel riquadro 'Device info', e premere il pulsante Delete."
}, },
"error": { "error": {
"authentication_failed": "Autenticazione fallita. Errore:\n{msg}", "authentication_failed": "Autenticazione fallita. Errore:\n{msg}",

View File

@@ -33,7 +33,8 @@
"options": { "options": {
"abort": { "abort": {
"already_configured": "O dispositivo já foi configurado.", "already_configured": "O dispositivo já foi configurado.",
"device_success": "Dispositivo {dev_name} {action} com sucesso." "device_success": "Dispositivo {dev_name} {action} com sucesso.",
"no_entities": "Não é possível remover todas as entidades de um dispositivo.\nSe você deseja excluir um dispositivo, insira-o no menu Dispositivos, clique nos 3 pontos no quadro 'Informações do dispositivo' e pressione o botão Excluir."
}, },
"error": { "error": {
"authentication_failed": "Falha ao autenticar.\n{msg}", "authentication_failed": "Falha ao autenticar.\n{msg}",