mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-22 16:56:35 +00:00
Domain Icon: disable warning in prod
This commit is contained in:
parent
c50b0c991c
commit
502497bccb
@ -91,9 +91,11 @@ export default function domainIcon(domain, state) {
|
||||
return 'mdi:open-in-new';
|
||||
|
||||
default:
|
||||
/* eslint-disable no-console */
|
||||
console.warn(`Unable to find icon for domain ${domain} (${state})`);
|
||||
/* eslint-enable no-console */
|
||||
if (__DEV__) {
|
||||
/* eslint-disable no-console */
|
||||
console.warn(`Unable to find icon for domain ${domain} (${state})`);
|
||||
/* eslint-enable no-console */
|
||||
}
|
||||
return defaultIcon;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user